package com.lwl.homework.service.impl;


import com.lwl.homework.pojo.Article;
import com.lwl.homework.repository.ArticleRepository;
import com.lwl.homework.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleRepository articleRepository;


    @Override
    public Page<Article>findAll(Pageable pageable) {
        Page<Article> all = articleRepository.findAll(pageable);
        return all;
    }
}
